package com.example.demo.bean;

import org.springframework.stereotype.Component;

@Component
public class User {
    private String username;
    private String password;
    private String mail;
    private String imgurl;

    public User(String username, String password, String mail, String imgurl) {
        this.username = username;
        this.password = password;
        this.mail = mail;
        this.imgurl = imgurl;
    }
    public User(){

    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", mail='" + mail + '\'' +
                ", imgurl='" + imgurl + '\'' +
                '}';
    }
}
